#ifndef POINTDBTEST_H_ 
#define POINTDBTEST_H_

#include <iostream>
#include <iterator>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

#include "../common/database/DataBase.h"
#include "../common/database/PointDb.h"
#include "../common/database/ParameterDb.h"
#include "../common/database/ConstraintDb.h"
#include "../common/database/PrimitiveDb.h"

using namespace common;
class PointDbTest : public CPPUNIT_NS :: TestFixture
{
	CPPUNIT_TEST_SUITE (PointDbTest); 

#ifndef TEST_VIEW
	CPPUNIT_TEST (testFunction);
#endif
#ifdef TEST_VIEW
	CPPUNIT_TEST (testFunction2);
	CPPUNIT_TEST (testFunction6);
#endif

	CPPUNIT_TEST_SUITE_END ();

	public:
		void setUp (void);
		void tearDown (void);

	protected:

		void testFunction (void);
		void testFunction2 (void);
		void testFunction6 (void);
	private:

		PointDb* pointDb;
		ParameterDb* paramDb;
		ConstraintDb* conDb;
		PrimitiveDb* primDb;
		Point* pon;
		Point* pon2;
		Point* pon3;
		skreal x;
		skreal y;
		size_t sz;
};

#endif /* POINTDBTEST_H_ */
